<?php


class Framework_DB_Table_ContactInfo extends Framework_DB_Table_Common {

   public $tableName = 'ContactInfo';
	
   public function __construct($db) {
   		
   		// Columns
   		$this->col = array(
	   		// Primary Key 1
	        'idOwner'     => array(
	            'type'    => 'integer',
	            'require' => true
	        ),
	        
	        // Primary Key 2
	        'privacy'     => array(
	            'type'    => 'integer',
	            'require' => true
	        ),
	        
	        
	        'email'       => array(
	            'type'    => 'varchar',
	            'size'    => 255,
	            
	            // Quickform settings
	            'qf_label' => 'Email: ',
	            'qf_type'  => 'text',

				// a set of QuickForm rules
	            'qf_rules' => array(
	                'email' => 'Must be in email format.'
           		)
	        ),
	        
	            
	       
			'AIM'   => array(
	             'type'    => 'varchar',
	             'size'    => 100,
	             
	             // Quickform settings
	            'qf_label' => 'AIM: ',
	            'qf_type'  => 'text'
	        ),
	            
	        'MSN'       => array(
	            'type'    => 'varchar',
	            'size'    => 100,
	            
	            // Quickform settings
	            'qf_label' => 'MSN: ',
	            'qf_type'  => 'text',
	            
	            // a set of QuickForm rules
	            'qf_rules' => array(
	                'email' => 'Must be in email format.'
           		)
	        ),
	        
	            
	       
			'Yahoo'   => array(
	             'type'    => 'varchar',
	             'size'    => 100,
	             
	             // Quickform settings
	            'qf_label' => 'Yahoo: ',
	            'qf_type'  => 'text'
	        ),
	            
	        'Google'       => array(
	            'type'    => 'varchar',
	            'size'    => 100,
	            
	            // Quickform settings
	            'qf_label' => 'Google/Jabber: ',
	            'qf_type'  => 'text'
	        ),
	        
	            
	       
			'ICQ'   => array(
	             'type'    => 'varchar',
	             'size'    => 100,
	             
	             // Quickform settings
	            'qf_label' => 'ICQ: ',
	            'qf_type'  => 'text'
	        )

	         

	         

	        
	    );
	    
	    // Indexes
	    $this->idx = array(
	    	'idOwnerPrivacy' => array(
	    		'cols' => array('idOwner', 'privacy'), 
	    		'type' => 'primary'
			)
	   );
   		
   		parent::__construct($db);
   }
	
	
}

?>